<!--$Id: article_list Author: liuricheng Time:2014-09-26 $-->
<table id="article-list-table" class="qs-table" width="100%">
	<thead>
		<tr class="qs-header">
			<th class="first" width="100px">
				<div>
					<input onclick="selectAll(this)" type="checkbox">
					<a href="javascript:listTable.sort('article_id');" title="点击对列表排序">编号</a>
					<img src="__PUBLIC__/image/admin/sort_desc.gif">
				</div>
			</th>
			<th width="160px">
				<a href="javascript:listTable.sort('title');">文章标题</a>
			</th>
			<th>
				<a href="javascript:listTable.sort('cat_id');">文章分类</a>
			</th>
			<th>
				<a href="javascript:listTable.sort('article_type');">文章重要性</a>
			</th>
			<th>
				<a href="javascript:listTable.sort('is_open');">是否显示</a>
			</th>
			<th>
				<a href="javascript:listTable.sort('add_time');">添加日期</a>
			</th>
			<th class="last">操作</th>
		</tr>
	</thead>
	<tbody>
		<volist name="articleList" id="article">
		<tr id="tr_{$article.article_id}" class="data">
			<td class="first">
				<div class="first-c">
					<span class="first-checkbox">
						<input name="checkboxes[]" class="check-item" type="checkbox" value="{$article.article_id}">
					</span>
					<span class="first-text">{$article.article_id}</span>						
				</div>
			</td>
			<td>
				<span onclick="javascript:listTable.edit(this, 'title', {$article.article_id})" title="点击修改内容">
					{$article.title}
				</span>
			</td>
			<td align="left" >
				<span>{$article.cat_name}</span>
			</td>
			<td align="center" >
				<span>
				<if condition="$article['article_type'] eq 0">
					普通
				<else />
					置顶
				</if>
				</span>
			</td>
			<td align="center" >
				<span>
				<img src="__PUBLIC__/image/admin/no.gif" onclick="listTable.toggle(this, 'toggle_show', {$article.article_id})"></span>
			</td>
			<td align="center" >
				<span>{$article.add_time|date='Y-m-d  h:m:s',###}</span>
			</td>
			<td align="center" nowrap="true" >
				<span>
					<a href="__URL__/article?id={$article.article_id}" target="_blank" title="查看">
						<img src="__PUBLIC__/image/admin/icon_view.gif" border="0" height="16" width="16">
					</a>
					<a href="__URL__/mod_article?id={$article.article_id}" title="编辑">
						<img src="__PUBLIC__/image/admin/icon_edit.gif" border="0" height="16" width="16">
					</a>
					<a href="javascript:listTable.remove('{$article.article_id}','确定删除','__URL__/articleAjaxTable');" title="移除">
						<img src="__PUBLIC__/image/admin/icon_drop.gif" border="0" height="16" width="16">
					</a>
				</span>
			</td>
		</tr>
		</volist>
		<tr class="tfoot">
			<td class="first">&nbsp;</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td class="last">&nbsp;</td>
		</tr>
	</tbody>
</table>
<include file="Library:paginator"/>